
(function(){
  var count = 0;
  var button = document.getElementById("count");

  button.onclick = function(){
    myEvent.trigger("add",count++);
  }
})();